<template>
  <div class="Index-box PlanningDetails-Box">
    <div class="PlanningDetails-title">
      <div class="Detailstitle overallSituationTitle">规划建设</div>
      <div class="Detailsfanhui" @click="closeDetailsfanhui"></div>
    </div>
    <div class="planPlanbox-middle">
      <div class="planPlanmiddle-itemAct">
        <div class="shuzi">49</div>
        <div class="guihuaxuexiao">现有学校</div>
      </div>
      <div class="planPlanmiddle-item">
        <div class="shuzi">49</div>
        <div class="guihuaxuexiao">在建学校</div>
      </div>
      <div class="planPlanmiddle-item">
        <div class="shuzi">49</div>
        <div class="guihuaxuexiao">带规划学校</div>
      </div>
    </div>
    <div class="planPlanbox-Echarts">
      <barChartEcharts :barChartList="barChartList" />
    </div>
    <div class="bingtu-box">
      <div class="bingtu-left">
        <pieChartEcahrts :pieChartObj="pieChartObj" />
        <div class="bingtuWenzi">
          <div class="bingtuWenzi-top">学生数量</div>
          <div class="bingtuWenzi-btn">000000人</div>
        </div>
      </div>
      <div class="bingtu-left">
        <pieChartEcahrts :pieChartObj="pieChartObj" />
        <div class="bingtuWenzi">
          <div class="bingtuWenzi-top">学生数量</div>
          <div class="bingtuWenzi-btn">000000人</div>
        </div>
      </div>
    </div>
    <div class="qiehuanBox">
      <div class="xueshengBtn"></div>
      <div class="jiaoshiBtn"></div>
    </div>
    <div class="planPlanbox-Echarts">
      <barChartEcharts :barChartList="barChartList1" />
    </div>
    <div class="wqxxlb"></div>
    <div class="searchFor-box">
      <div class="elinput">
        <el-input
          v-model="inputValue"
          placeholder="请输入搜索内容"
          style="width: 100%; height: 100% !important"
        ></el-input>
      </div>
      <div class="fangdajing"></div>
    </div>
    <div class="PlanningDetailsBiaoge-box">
      <div class="Biaoge-top">
        <div class="Biaoge-title1">学校名称</div>
        <div class="Biaoge-title2">建成时间</div>
        <div class="Biaoge-title3">学校类型</div>
        <div class="Biaoge-title4">定位</div>
      </div>
      <div class="Biaoge-centerBox">
        <div class="Biaoge-item" v-for="item in 110">
          <div class="Biaoge-item1">xxx小学</div>
          <div class="Biaoge-item2">2020-05-10</div>
          <div class="Biaoge-item3">小学</div>
          <div class="Biaoge-item4">
            <div class="Biaoge-icon"></div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script setup>
import barChartEcharts from "@/components/barChartEcharts.vue"
import pieChartEcahrts from "@/components/pieChartEcahrtsCun.vue"
import { ref } from "vue"
import { ue4 } from "@/utils/unrealJs"
const barChartList = ref({
  xData: ["一年级", "二年级", "三年级", "四年级", "五年级", "六年级"],
  seriesObj: {
    教师详情: [10, 20, 30, 40, 50, 60]
  },
  // 从浅到深(先量上面再量下面)
  colorList: {
    教师详情: ["rgba(66, 165, 245)", "rgba(68, 217, 253)"]
  },
  // danwei: "单位(人)",
  isShowlegend: false
})
const barChartList1 = ref({
  xData: ["一年级", "二年级", "三年级", "四年级", "五年级", "六年级"],
  seriesObj: {
    教师详情: [10, 20, 30, 40, 50, 60]
  },
  // 从浅到深(先量上面再量下面)
  colorList: {
    教师详情: ["rgba(66, 165, 245)", "rgba(68, 217, 253)"]
  },
  danwei: "单位(人)",
  isShowlegend: false
})
const pieChartObj = ref({
  radius: ["50%", "70%"],
  center: ["23.35%", "50.4%"],
  pieChartList: [
    {
      value: 100,
      name: "现有学校"
    },
    { value: 80, name: "在建学校" },
    { value: 60, name: "带规划学校" }
  ]
})
const inputValue = ref("")
const closeDetailsfanhui = () => {
  ue4("GhplanDetails", { isClose: false })
}
</script>
<style scoped lang="less">
.PlanningDetails-Box {
  background: url("@/assets/PlanningDetails/XXC_GUIHUAJIANSHE@2x.png") no-repeat
    center;
  background-size: 100% 100%;
  .qiehuanBox {
    display: flex;
    width: 100%;
    height: 25px;
    margin-top: 10px;
    margin-bottom: 10px;
    .xueshengBtn {
      cursor: pointer;
      margin-left: 6px;
      width: 56px;
      height: 25px;
      background: url("@/assets/PlanningDetails/AN_XUESHENG_MR@2x.png")
        no-repeat center;
      background-size: 100% 100%;
    }
    .xueshengBtn:hover {
      margin-left: 6px;
      width: 56px;
      height: 25px;
      background: url("@/assets/PlanningDetails/AN_XUESHENG_XZ@2x.png")
        no-repeat center;
      background-size: 100% 100%;
    }
    .jiaoshiBtn {
      cursor: pointer;
      margin-left: 6px;
      width: 56px;
      height: 25px;
      background: url("@/assets/PlanningDetails/AN_JIAOSHI_MR@2x.png") no-repeat
        center;
      background-size: 100% 100%;
    }
    .jiaoshiBtn:hover {
      margin-left: 6px;
      width: 56px;
      height: 25px;
      background: url("@/assets/PlanningDetails/AN_JIAOSHI_XZ@2x.png") no-repeat
        center;
      background-size: 100% 100%;
    }
  }
  .planPlanbox-Echarts {
    margin-bottom: 10px;
    width: 400px;
    height: 195px;
  }
  .bingtu-box {
    width: 100%;
    height: 75px;
    display: flex;
    justify-content: space-around;
    .bingtu-left {
      width: 185px;
      height: 75px;
      background: url("@/assets/PlanningDetails/BJ_SHULIANG@2x.png") no-repeat
        center;
      background-size: 100% 100%;
      position: relative;
      .bingtuWenzi {
        width: 100px;
        height: 75px;
        padding-top: 18px;
        position: absolute;
        right: 0;
        top: 0;
        box-sizing: border-box;
        .bingtuWenzi-top {
          font-size: 12px;
          color: #caf0ff;
        }
        .bingtuWenzi-btn {
          font-size: 18px;
          color: #ffffff;
        }
      }
    }
  }
  .wqxxlb {
    margin-left: 10px;
    margin-bottom: 10px;
    width: 95px;
    height: 17px;
    background: url("@/assets/PlanningDetails/XIAOBIAOTI@2x.png") no-repeat
      center;
    background-size: 100% 100%;
  }
  .searchFor-box {
    width: 376px;
    height: 28px;
    margin: auto;
    background: url("@/assets/PlanningDetails/SOUSUOKUANG@2x.png") no-repeat
      center;
    background-size: 100% 100%;
    display: flex;
    .elinput {
      width: 80%;
      height: 28px;
    }
    .fangdajing {
      cursor: pointer;
      margin-left: 45px;
      width: 28px;
      height: 28px;
      background-size: 100% 100%;
      background: url("@/assets/PlanningDetails/ICON_SOUSUO@2x.png") no-repeat
        center;
      background-size: 60% 60%;
    }
  }
  .PlanningDetailsBiaoge-box {
    margin: auto;
    margin-top: 12px;
    width: 376px;
    height: 250px;
    // background-color: red;
    .Biaoge-top {
      width: 100%;
      height: 28px;
      background: url("@/assets/PlanningDetails/BJ_LBTOUBU@2x.png") no-repeat
        center;
      background-size: 100% 100%;
      display: flex;
      font-size: 12px;
      // background-color: pink;
      .Biaoge-title1 {
        width: 118px;
        height: 28px;
        line-height: 28px;
        text-align: center;
        background: linear-gradient(180deg, #ffffff 51%, #4abaff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }
      .Biaoge-title2 {
        width: 100px;
        height: 28px;
        line-height: 28px;
        text-align: center;
        background: linear-gradient(180deg, #ffffff 51%, #4abaff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }
      .Biaoge-title3 {
        width: 90px;
        height: 28px;
        line-height: 28px;
        text-align: center;
        background: linear-gradient(180deg, #ffffff 51%, #4abaff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }
      .Biaoge-title4 {
        width: 68px;
        height: 28px;
        line-height: 28px;
        text-align: center;
        background: linear-gradient(180deg, #ffffff 51%, #4abaff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }
    }
    .Biaoge-centerBox {
      margin-top: 10px;
      overflow-y: scroll;
      width: 100%;
      height: 212px;
      .Biaoge-item {
        width: 100%;
        height: 28px;
        margin-top: 2px;
        background: url("@/assets/PlanningDetails/BJ_LBNEIRONG@2x.png")
          no-repeat center;
        background-size: 100% 100%;
        display: flex;
        font-size: 12px;
        .Biaoge-item1 {
          width: 118px;
          height: 28px;
          text-align: center;
          line-height: 28px;
          color: #caf0ff;
        }
        .Biaoge-item2 {
          width: 100px;
          height: 28px;
          text-align: center;
          line-height: 28px;
          color: #caf0ff;
        }
        .Biaoge-item3 {
          width: 90px;
          height: 28px;
          text-align: center;
          line-height: 28px;
          color: #caf0ff;
        }
        .Biaoge-item4 {
          width: 68px;
          height: 28px;
          text-align: center;
          line-height: 28px;
          color: #caf0ff;
          .Biaoge-icon {
            cursor: pointer;
            width: 12px;
            height: 14px;
            background-color: red;
            margin: auto;
            margin-top: 7px;
            background: url("@/assets/Educationalland/DINGWEI.svg") no-repeat
              center;
            background-size: 100% 100%;
          }
        }
      }
    }
  }
}
/deep/.el-input__wrapper {
  border: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
  color: #fff !important;
  font-size: inherit !important;
}
/deep/.el-input__inner {
  color: #fff;
}
</style>
